package hc.bre.policy

import hc.bre.clas.ClasRuleDefinition
import hc.bre.cmn.IListOption
import hc.bre.cmn.RuleScriptBuilder
import hc.bre.data.DataBuilder

@groovy.transform.CompileStatic
class CategoryBuilder extends DataBuilder<CategoryOption,CategoryDefinition>{
	@Override
	public void buildClassMemberVariable(CategoryOption it) {
		String clazz = className(CategoryOption.class)
		apdStaticFinalVar("${clazz}"
				,it.code
				,"new ${clazz}(id:${it.id}, code:${referText(it.code)}, name:${referText(it.name)},level:${it.level})");
	}
}
